import Layout from '@/layout'

const hidden = true
const affix = true
const noCache = true
const alwaysShow = false


export default [
  {
    path: '/question',
    component: Layout,
    redirect: { name: 'Question' },
    children: [
      {
        path: 'index',
        component: (resolve) => require(['@/views/question/index'], resolve),
        name: 'Question',
        meta: { title: '问卷调查', icon: 'radio' },
      },
      //添加问卷的路由配置
      {
        path: 'questionAdd',
        component: (resolve) => require(['@/views/question/add/index'], resolve),
        name: 'QuestionAdd',
        meta: { title: '问卷调查-新增', icon: 'radio', hidden: true },
      },
      //问卷详情的路由配置
      {
        path: 'questionDetail',
        component: (resolve) => require(['@/views/question/detail/index'], resolve),
        name: 'QuestionDetail',
        meta: { title: '问卷调查-详情', icon: 'radio', hidden: true },
        props: true
      },
      //修改问卷的路由配置
      {
        path: 'questionEdit',
        component: (resolve) => require(['@/views/question/edit/index'], resolve),
        name: 'QuestionEdit',
        meta: { title: '问卷调查-修改', icon: 'radio', hidden: true },
        props: true
      },
      //统计问卷的路由配置
      {
        path: 'questionStatistic',
        component: (resolve) => require(['@/views/question/statistic/index'], resolve),
        name: 'QuestionStatistic',
        meta: { title: '问卷调查-统计', icon: 'radio', hidden: true },
        props: true
      },
    ],
  },
]
